import { createRouter, createWebHashHistory } from 'vue-router';
import MainChild from './mainChild'

const routes = [
  {
    path: '/',
    redirect: '/login'
  },
  {
    path: '/login',
    name: 'login',
    component: () => import(/* webpackChunkName: "Common" */'@/views/Login/LoginView')
  },
  {
    path: '/main',
    component: () => import(/* webpackChunkName: "Common" */'@/views/MainView.vue'),
    children: MainChild
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router